<!doctype html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<body th:fragment="tpl-menu-select" th:remove="tag">
<ul style="margin-left: 20px;" >
    <li th:each="roleMenuVO : ${roleMenuVO.subs}">
        <label class="am-checkbox ">
            <input
                th:attr="data-select-href='/framework/sysRoleMenu/createByRoleIdAndMenuId?menuId='+${roleMenuVO.sysMenu.id}+'&roleId='+${roleId},data-cancel-href='/framework/sysRoleMenu/deleteByRoleIdAndMenuId?menuId='+${roleMenuVO.sysMenu.id}+'&roleId='+${roleId},data-func='javascript:void(0)'"
                class="btn-checkbox-select-cancel"
                type="checkbox" name="menuId" th:value="${roleMenuVO.sysMenu.id}" th:checked="${roleMenuVO.selected}" data-am-ucheck>
            <i th:class="${'am-icon-'+roleMenuVO.sysMenu.menuIcon+'  am-secondary'}"></i>
            <span th:text="${roleMenuVO.sysMenu.menuName}">menu</span>
            <code><small th:text="${roleMenuVO.sysMenu.menuComment}"></small></code>
        </label>

        <div
                th:if="${not #lists.isEmpty( roleMenuVO.subs)}"
                th:with="menuVO = ${roleMenuVO}"
                th:include="framework/tpl/tpl-menu-select :: tpl-menu-select" th:remove="tag"/>
    </li>
</ul>

</body>
</html>
